package base.service.dao.base.user.impl;

import base.service.dao.BaseDao;
import base.service.dao.base.user.IDaoBase_Ac_User;
import base.service.domain.exception.DaoException;
import com.ibatis.sqlmap.client.SqlMapClient;
import org.apache.log4j.Logger;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 12-7-9
 * Time: 下午2:53
 * To change this template use File | Settings | File Templates.
 */
public class DaoBase_Ac_UserImpl extends BaseDao implements IDaoBase_Ac_User{

    protected Logger log = Logger.getLogger(this.getClass());


    public DaoBase_Ac_UserImpl(SqlMapClient sqlMap) {
        super(sqlMap);
    }

    public List getBase_Ac_User(Map paramMap) throws DaoException {
        List list = null;
		try {

			list =  sqlMap.queryForList("base.user.getListBASE_AC_USER", paramMap);
		} catch (SQLException e) {
			String err = "Get UserMessage Error.";
			log.error(err, e);
            e.printStackTrace();
			throw new DaoException(err, e);
		}
        return list;
    }
}
